﻿namespace Batman.Common.Models
{
    public class AuthorizationHost
    {
        public string Schema { get; set; }

        public string Host { get; set; }

        public int Port { get; set; }

        public string GetUri()
        {
            var uri = $"{Schema}://{Host}";
            if (Port != 80) uri = $"{uri}:{Port}";

            return uri;
        }
    }
}
